package com.whuan.lambda;

import java.util.function.Function;

public class lambda7 {

    public  lambda7(){
        String x= "aa";
        Function<String,String> func1 = q -> {System.out.println(this);return x ;};
        System.out.println(func1.apply("123"));
    }
    public String toString(){
        return "Main2";
    }
    public static void main(String[] argv) {
        new lambda7();
    }
}
